package com.greenline.push.common.utils;

import org.apache.commons.lang.StringUtils;

/**
 * 
 * @Type StringUtil
 * @Desc
 * @author shuai.zuo
 * @date 2014年12月2日
 * @Version V1.0
 */
public class StringUtil {
    public static void main(String[] args) {
        // System.out.println(hasEmpty("s","s"));
        // String s = null;
        // System.out.println(s.toString());
        // Long a=1l;
        // long b=0;
        // System.out.println(hasEmpty(a,"1",b));
    }

    public static boolean hasEmpty(String... param) {
        for (String tmp : param) {
            if (StringUtils.isBlank(tmp))
                return true;
        }
        return false;
    }

    public static boolean hasEmpty(Object... param) {
        for (Object tmp : param) {
            if (null == tmp) 
                return true;
            if (tmp instanceof String)
                if (StringUtils.isBlank(tmp.toString()))
                    return true;
        }
        return false;
    }

}
